'''
Created on 15/06/2010

@author: Will
'''

from realObject import RealObject
import pymunk as pm
class RealRoundObject(RealObject):
    
    def __init__(self,x,y,imageFile,mass):
        RealObject.__init__(self, x, y, 0, imageFile, None, mass)
        inertia = pm.moment_for_circle(mass, 0, self.image.width/2, (0,0))
        self.body = pm.Body(self.mass, inertia)
        self.body.position =( self.x, self.y)
        self.shape = pm.Circle(self.body, self.image.width/2,(0,0))
        
        self.shape.friction = 0.5